From: Victor Toso Date: Thu, 12 May 2016 07:25:49 +0000 (+0200) Subject: ScreenShield: set LockedHint property from systemd X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~864 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ddea54a5398c123a4711243e55811c8ba26f8b85;p=gnome-shell.git ScreenShield: set LockedHint property from systemd Logind recently got support for a hint property in Session Object to inform if session is Locked or not. It is up to desktop environments to keep this property up to date. https://bugzilla.gnome.org/show_bug.cgi?id=764773 --- diff --git a/js/misc/loginManager.js b/js/misc/loginManager.js index 6ed826226..7db94d406 100644 --- a/js/misc/loginManager.js +++ b/js/misc/loginManager.js @@ -40,6 +40,9 @@ const SystemdLoginSessionIface = ' \ \ \ \ + \ + \ + \ \ '; diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index d8d991c20..18f512445 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -559,6 +559,9 @@ const ScreenShield = new Lang.Class({ if (prevIsActive != this._isActive) this.emit('active-changed'); + if (this._loginSession) + this._loginSession.SetLockedHintRemote(active); + this._syncInhibitor(); },